GrowBoxDock is implemented as amodified version of the sources to SimpleText that shipped on the OS X Developer CD.  The only file that is modified is SimpleText.cp.

I apologize that this could not be more complete, and that I couldn't provide the internal headers necessary to access Core Graphics Services.

jorg